import storeEnum from '@/api/constant/storeerin'
import goodEnum from '@/api/constant/goodserin'

// 店铺名称
export function storeNameForId(val) {
  const res = storeEnum.storesType.find(item => item.id === val)
  return res.value
}

// 行业id
export function storeIndustryErins(val) {
  // debugger
  // console.log(val)
  const res = storeEnum.storeIndustryErins.find(item => item.id === val)
  return res.industryname
}

// 商品一级分类
export function goodCategoryName(val) {
  // debugger
  // console.log(val)
  const res = goodEnum.goodCategorys.find(item => item.id === val)
  return res.categoryName
}

// 商品二级分类
export function subGoodCategoryName(val) {
  // debugger
  // console.log(val)
  const res = goodEnum.subGoodCategorys.find(item => item.id === val)
  return res.subName
}
